@charset "utf-8";

body {
    background-color: #FFFACD;
    font-family: 'Verdana','Hirogino Sans','Meiryo',sans-serif; 
}


.image-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resized-holstein_rogo {
    width: 100px;
    height: auto;
}

.resized-holstein_title {
    width: 500px;
    height: auto;

    margin: 0 auto;

}

.Titleimage-row {
  display: flex;
  justify-content: center; /* 中央寄せ（必要なら） */
  padding: 0;           /* ウィンドウサイズに応じた左右余白 */
  box-sizing: border-box;
  gap: 0;                   /* 画像間の余白をゼロに */
}

.Titleimage-row img {
  width: calc(100% / 3);    /* 3枚でぴったり割り切る */
  height: auto;
  display: block;           /* 余計な隙間を防ぐ */
}

.Titleimage-row-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.Titleimage-center-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-box {
  width: 100%;
}

.logo-box img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.logo-caption {
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin: 0;
  padding: 6px 12px;
  background-color: rgba(0, 0, 0, 0.6); /* 黒っぽい半透明背景 */
  border-radius: 8px; /* 角を少し丸くして柔らかい印象に */
  display: inline-block;
}


.title-bunner {
    background-image: url("../sozai/holstein_makiba.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 350px; /* 高さは画像に合わせて調整 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* 文字色は背景に合わせて調整 */
    font-size: 2em;
}

nav {
    display: block;
    border-top: 2px solid #7c5d48;
    border-bottom: 2px solid #7c5d48;
    background-color: rgba(255,255,255,0.42);
    padding: 12px 0px 10px;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    font-size: 22px;
    font-weight: bold;
    color: #7c5d48;
}

nav ul li a:hover {
    text-decoration: underline double;
}

.scroll-wrapper {
  overflow-x: auto;
  width: 100vw;
  min-width: 1024px;
  text-align: center; /* ← ここがポイント！ */
}

h1 {
    margin: 20px;
    font-size: 30px;
    font-weight: bold;
    background: linear-gradient(to bottom right, #D3D3D3, #A9A9A9);
    text-align: center;
    border: 3px solid #000000;
    border-radius: 20px;
    color: #7c5d48;
}

h2 {
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto;
    border: 3px solid #000000;
    padding: 10px;
    box-sizing: border-box;

}

h3 {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    margin: 0 auto;
    border: 3px solid #000000;

}

p {
    line-height: 1.5;
    text-indent: 1em; 
}

summary {
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px;
  background-color: #f0f0f0;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 12px;
}


.custom-link {
  font-size: 0.85em; /* ← お好みで調整。0.8em〜0.9emが自然な範囲 */
  color: #0055aa;    /* リンク色（必要なら） */
  text-decoration: underline;}

/* 共通スタイル */
.container {
  max-width: 1200px;       /* 最大幅を1200pxに制限 */
  margin: 0 auto;          /* 中央寄せ */
  padding: 0 2%;           /* 左右に少し内側の余白 */
  box-sizing: border-box;  /* paddingを含めて幅を計算 */
}

/* 画面幅が1200px以上のとき（全画面） */
@media screen and (min-width: 1200px) {
  .container {
    padding: 0 3%;
  }
}

/* 画面幅が600px以下のとき（スマホ） */
@media screen and (max-width: 600px) {
  .container {
    padding: 0 1%;
  }
}

.Entry-Sake {
  display: flex;
  align-items: flex-start;  /* ← 高さを揃える */
  gap: 20px;
  margin-bottom: 24px;   /* ← 評価欄との間隔 */
  width: 100%;            /* ← 親に合わせる */
  max-width: 1024px;      /* ← 最大幅を制限 */
  box-sizing: border-box; /* ← パディング込みで制御 */
}  

.info-block {
  display: flex;
  flex-direction: column; /* ← ボードと評価欄を縦並びに */
  gap: 12px;
  max-width: 600px; /* ← ボード＋評価欄の幅を固定 */
  width: 100%;
}

.sake-img {
  width: 400px;     /* ← 固定サイズ！ */
  height: auto;
  flex-shrink: 0;   /* ← Flex内で縮まないようにする */
}  

.board-container {
  position: relative;
  width: 500px;
  height: 330px; 
  flex-shrink: 0;   /* ← Flex内で縮まないように */
}

.board-img {
  width: 500px;
  height: auto;
  display: block;
}

.fusen-note {
  display: block;
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #fffacd;
  border: 1px solid #e0c97f;
  padding: 8px 12px;
  font-size: 10px;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  border-radius: 4px;
  transform: rotate(-2deg);
  z-index: 2;
  width: 90%;
  max-width: 500px;
  text-align: left;
}

.note-Cyuumoku {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px; /* サイズはお好みで調整 */
  height: auto;
  z-index: 3;
}


.fusen-note p {
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-weight: bold;
}

.fusen-note .pin {
  position: absolute;
  top: -6px;
  left: 6px;
  font-size: 16px;
}

.board-text {
  position: absolute;
  top: 132px;
  left: 55%;
  transform: translateX(-50%);
  width: 400px;
  height: auto;
  color: #333;
  font-size: 14px;
  font-weight: bold;
}

  .board-text .board-item {
    display: flex;
    align-items: flex-start; /* ← ここがポイント！上揃えにする */
    margin: 0;
    padding: 0;
    margin-bottom: -0.2em;
    line-height: 1.0;      /* 改行時の行間をやや狭めに */
    letter-spacing: -0.3px;

  }

  .board-item .label {
    display: inline-block;
    width: 8em; /* ラベル幅を固定して揃える */
    font-weight: bold;
    line-height: 1.0;
    min-height: 2.4em; /* ← 2行分の高さを確保して、縦位置を安定させる */
  }

  .board-item .value {
    display: inline-block;
    line-height: 1.0;
    text-align: left;
  }



.board-text .ingredients.ingredients {
  line-height: 1.1; /* ← 他より少し詰めた行間 */
}

.sake-rank {
  position: absolute;
  bottom: 40px;
  right: 80px;
  width: 60px; /* サイズはお好みで調整 */
  height: auto;
  z-index: 2;
}

.sake-hiire {
  position: absolute;
  bottom: 90px;
  right: 80px;
  width: 60px; /* サイズはお好みで調整 */
  height: auto;
  z-index: 2;
}


/*　　評価セクション  */
.reviewer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.reviewer:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.reviewer-icon {
  width: 30px;
  height: auto;
}

.review-block {
  display: flex;
  flex-direction: column;
}

.rating {
  font-size: 24px;
  display: flex;
  gap: 4px;
}

.star {
  font-size: 16px;
  width: 24px;
  height: 24px;
  margin-right: 2px;
  position: relative;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  text-align: center;
  overflow: hidden;
  font-family: "Meiryo", "Arial", sans-serif; /* ← フォントを統一 */
}

.star.full::before {
  content: "★";
  color: gold;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}

.star.empty::before {
  content: "★";
  color: #ccc;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}

.star.partial {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.star.partial .star-base,
.star.partial .star-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  font-family: "Meiryo", "Arial", sans-serif; /* ← ここも統一 */
}

.star.partial .star-base {
  color: #ccc;
  z-index: 1;
}

.star.partial .star-mask {
  color: gold;
  overflow: hidden;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

.score-label {
  font-size: 16px;
  font-weight: bold;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  margin-left: 8px;
  color: #333;
}

.star-wrapper {
  display: inline-block;
}

.comment {
  text-align: left;
  margin-top: 2px;
  font-size: 10px;
  color: #555;
}


.Entry-Sake {
  display: flex;
  width: 1024px; /* ← 固定サイズ */
  margin-bottom: 24px; /* ← ボードの下に余白を追加 */
}

.review-section {
  margin-top: 0;
  max-width: 500px; /* ← 横幅の制限！ */
  height: 250px;
  overflow-y: auto; /* ← はみ出したらスクロール！ */
}

.review-section h3 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #333;
}

.sake-block {
  display: flex;
  flex-direction: column;
  gap: 32px; /* ボードと評価欄の間隔 */
  margin: 30px
}

.star-wrapper {
  display: inline-block;
}

.score-label {
  font-size: 20px;
  font-weight: bold;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  margin-left: 8px;
  color: #333;
}

.reviewer-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px; /* ← レイアウト安定のため */
}

.reviewer-name {
  margin-top: 6px;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
}

.sake-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  background-color: #fdfaf5;
  padding: 20px;
  border: 1px solid #d8cfc4;
  border-radius: 8px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;

  /* 唐草模様ボツ 
  position: relative;
  background-image: url('sozai/karakusa_pattern_color3.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  */
}

/* 唐草模様の色合いを少し薄く（ボツ）
.sake-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.6); /* ← 白の半透明レイヤー 
  z-index: 0;
} */

.sake-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.sake-explain-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-direction: row;
}
.sake-image {
  width: 80px;
  height: auto;
  border: 1px solid #c8b8a0;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.sake-text {
  flex: 1; /* ← テキストが画像の横に広がるように */
}

.sake-text h3 {
  margin: 0 0 6px;
  font-size: 1.2em;
  color: #7c4d00;
}

.sake-text p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  color: #4c3a1a;
}

.hr-icon {
  text-align: center;
  position: relative;
  margin: 32px 0;
  min-height: 1.0em;
  display: block;
  width: 100%;
}

.hr-icon::before {
  content: "";
  display: block;
  height: 0;
  border-top: 1px solid #c8b8a0;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 0;
}

.hr-icon span {
  background-color: #fdfaf5;
  padding: 0 12px;
  position: relative;
  z-index: 1;
  color: #7c4d00;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

details {
  overflow: visible;
}


.highlight {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.ichimatsu-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px; /* タイトルとラインの間隔 */
  width: 100%;
  margin: 8px 0;
  padding: 0 100px;
}

.line {
  flex: 1;
  height: 12px;
  background-image: linear-gradient(90deg, #000 25%, #fff 25%, #fff 50%, #000 50%, #000 75%, #fff 75%);
  background-size: 48px 100%;
  margin: 0 8px;
}

.title {
  white-space: nowrap;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 1.2em;
  color: #333;
}

.ichimatsu-divider + p {
  margin-top: 8px; /* ← タイトル直下の文章だけ狭める */
}

/* ---------------  ランキング  ------------- */
#ranking_total-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px;
}

.ranking-item {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
}

.ranking-item img.main-image {
  width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 4px;
}

.ranking-item .badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 60px;
  height: auto;
  border-radius: 8px;
  z-index: 2;
}

.ranking-item .score {
  font-weight: bold;
  color: #333;
}

/*  ----------ランキング（酒種類：普通酒部門） ----------  */
#normal-sake-ranking {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px;
}

.normal-item {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
}

.normal-item img.main-image {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 4px;
  border-radius: 8px;
}

.normal-item .badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 60px;
  height: auto;
  z-index: 2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.normal-item .score {
  font-weight: bold;
  color: #333;
}

/*  ----------ランキング（酒種類：純米酒部門） ----------  */
#jyunmai-sake-ranking {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px;
}

.jyunmai-item {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
}

.jyunmai-item img.jyunmai-main-image {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 4px;
  border-radius: 8px;
}

.jyunmai-item .badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 60px;
  height: auto;
  z-index: 2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.jyunmai-item .score {
  font-weight: bold;
  color: #333;
}

/*  ----------ランキング（酒種類：純米吟醸酒部門） ----------  */
#jyunmaiginjyou-sake-ranking {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px;
}

.jyunmaiginjyou-item {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
}

.jyunmaiginjyou-item img.jyunmaiginjyou-main-image {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 4px;
  border-radius: 8px;
}

.jyunmaiginjyou-item .badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 60px;
  height: auto;
  z-index: 2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.jyunmaiginjyou-item .score {
  font-weight: bold;
  color: #333;
}

/*  ----------ランキング（酒種類：純米大吟醸酒部門） ----------  */
#jyunmaidaiginjyou-sake-ranking {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px;
}

.jyunmaidaiginjyou-item {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
}

.jyunmaidaiginjyou-item img.jyunmaidaiginjyou-main-image {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 4px;
  border-radius: 8px;
}

.jyunmaidaiginjyou-item .badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 60px;
  height: auto;
  z-index: 2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.jyunmaidaiginjyou-item .score {
  font-weight: bold;
  color: #333;
}

/*  ----------ランキング（酒種類：特別純米酒部門） ----------  */
#tokubetsujyunmai-sake-ranking {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px;
}

.tokubetsujyunmai-item {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
}

.tokubetsujyunmai-item img.tokubetsujyunmai-main-image {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 4px;
  border-radius: 8px;
}

.tokubetsujyunmai-item .badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 60px;
  height: auto;
  z-index: 2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tokubetsujyunmai-item .score {
  font-weight: bold;
  color: #333;
}
/*  ----------ランキング（レビュー部門） ----------  */
#geruge-ranking {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px;
}

#yosshi-ranking {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px;
}

#holstein-ranking {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 8px;
}


.reviewer-item {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
}

.reviewer-item img.main-image {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 4px;
  border-radius: 8px;
}

.reviewer-item .badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 60px;
  height: auto;
  z-index: 2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.reviewer-item .score {
  font-weight: bold;
  color: #333;
}
